package week07.necessary.config;

import com.zaxxer.hikari.HikariDataSource;
import lombok.Data;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

@Data
@ConfigurationProperties(prefix = "spring.datasource")
public class DatasourceConfigProperties {

    @NestedConfigurationProperty
    private HikariDataSource write;

    @NestedConfigurationProperty
    private HikariDataSource read;
}
